package org.vincen.helloworld.rubbish;

import java.text.DecimalFormat;
import java.text.ParseException;

public class R20130710 {

	public static void main(String[] args) throws ParseException {
		DecimalFormat df = new DecimalFormat("#,###");
		String s1 = "250,550,710";
		String s2 = "600200";
		
		long l1 = df.parse(s1).longValue();
		System.out.println(l1);
		long l2 = df.parse(s2).longValue();
		System.out.println(l2);
	}

}
